package com.zxp.zxpsmarthomeapk.view.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.qmuiteam.qmui.widget.QMUITopBar;
import com.zxp.zxpsmarthomeapk.R;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * 情景Fragment
 * function:针对不同的场景定制不同的家居参数
 */
public class ModeFragment extends Fragment {

    @BindView(R.id.topbar_mode)
    QMUITopBar topbar_mode;
    private View view_mode;

    public ModeFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        view_mode = inflater.inflate(R.layout.fragment_mode, container, false);
        ButterKnife.bind(this, view_mode);
        initView();
        return view_mode;
    }

    private void initView() {
        topbar_mode.addRightTextButton("管理", R.id.topbar_right_button).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });
    }

}
